const {
	result_success,
	result_error
} = require('http-result-modle')
const db = uniCloud.database()
const dbCmd = db.command
const userCollectionName = 'uni-id-users'
const userCollection = db.collection(userCollectionName)
const appletInfoCollectionName = 'wmz-applet-info'
const appletInfoCollection = db.collection(appletInfoCollectionName)
const appAboutCollectionName = 'wmzmall-app-about'
const appAboutCollection = db.collection(appAboutCollectionName)
const appCarouselCollectionName = 'wmzmall-app-carousel'
const appCarouselCollection = db.collection(appCarouselCollectionName)
const goodsCollectionName = 'wmzmall-goods'
const goodsCollection = db.collection(goodsCollectionName)
const contactCollectionName = 'wmzmall-app-contact'
const contactCollection = db.collection(contactCollectionName)
const consultCollectionName = 'wmzmall-app-consult'
const consultCollection = db.collection(consultCollectionName)

module.exports = {
	result_success,
	result_error,
	db,
	dbCmd,
	userCollectionName,
	userCollection,
	appletInfoCollectionName,
	appletInfoCollection,
	appAboutCollectionName,
	appAboutCollection,
	appCarouselCollectionName,
	appCarouselCollection,
	contactCollectionName,
	contactCollection,
	consultCollectionName,
	consultCollection
}